<?php

/**
 * This is the base controller that defines how the controllers should look
 * 
 * @author johan <info@johandahlberg.com>
 */
abstract class BaseController {
	/**
	 * @registry object
	 */
	protected $registry;
	
	/**
	 * Create a controller object and load registry
	 * @param unknown_type $registry
	 */
	function __construct($registry) {
	    $this->registry = $registry;
	    $this->registry->template->registry = $registry;
	}
	
	/**
	 * @all controllers must contain an index method
	 */
	abstract function index();
}

?>